/**
 * 
 */
package decorator;

/**
 * @author boboges
 *
 */
public class Do {

	public static void main(String[] args) {
		BeginEndCatcher catcher = new BeginEndCatcher();
		BodyResolver bodyResolver = new BodyResolver();
		LoopContentResolver loopContentResolver = new LoopContentResolver();
		bodyResolver.setCatcher(catcher);
		loopContentResolver.setCatcher(bodyResolver);
		loopContentResolver.catchAndReturn("一个网页的 所以内容");
	}
}
